<?php
include_once("../../../config.php");

if($_REQUEST['group_name'] and $_REQUEST['Authorization'])
{
$_data['ai_apply_member_nid']=$_REQUEST['Authorization'];
$_data['ai_name']=$_REQUEST['group_name'];
$_data['ai_status']="申请中";
$_data['ai_term_nid']="root";
$_data['ai_add_time']=date("Y-m-d H:i:s");

$creat_sql =insert_date($table_prefix."group",$_data);
$result    = do_query($creat_sql);
mysqli_close($con);



if(!$result)
{
    $data          = "插入成功";
}
else
{
    $data          = $result;
}

    $arr['status'] = 200;
}
else
{
    $arr['status'] = 300;
}



$arr['info']   = $data;
die(json_encode($arr));
?>